package cn.bugstack.mybatis.transaction;

import javax.sql.DataSource;
import java.sql.Connection;

/**
 * @description 事务工厂
 */

public interface TransactionFactory {

    Transaction newTransaction(Connection connection);


    Transaction newTransaction(DataSource dataSource,TransactionIsolationLevel transactionIsolationLevel,boolean autoCommit);





}
